<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
  <title>欢迎使用领捷智慧物流管理系统</title>
  <link rel="hshortcut icon" href="../static/img/own/head.png"/>
  <script src="/static/js/jquery.js"></script>
  <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i">
  <link rel="stylesheet" href="/static/fonts/fontawesome-all.min.css">
</head>

<body>
<div id="wrapper">
  <div class="d-flex flex-column" id="content-wrapper">
    <div id="content">
      <div class="container border rounded" style="min-width: 100%;width: auto;margin-bottom: 0px;padding: 0px;padding-top: 0px;padding-right: 0px;padding-bottom: 0px;padding-left: 0px;height: auto;margin-right: 0px;">
        <div class="row" style="margin-right: 0px;margin-left: 0px;">
          <div class="col" style="margin-left: 24px;padding: 13px;background: #ffffff;margin-right: 24px;"><span style="font-size: 25px;color: rgb(0,0,0);padding-left: 0px;">商品补货：</span></div>
        </div>
      </div>
      <div class="container text-left d-inline-flex justify-content-center" style="width: 100%;height: auto;margin: 0px;padding: 0px;margin-right: 0;margin-left: 0;max-width: none;min-width: auto;">
        <form method="post" action="/inputorder/addInputorder" onsubmit="return fabu(this)" class="border rounded d-inline-flex flex-column justify-content-start justify-content-xl-start" style="margin-right: 24px;margin-left: 24px;background: #ffffff;height: auto;padding: 13px;width: 100%;"><span style="font-size: 18px;color: rgb(0,0,0);margin-left: 21px;margin-top: 0px;padding: 0px;padding-top: 0px;">商品信息</span>
          <hr style="border-width: 1px;">
          <div class="form-group text-monospace text-center d-inline-flex justify-content-center"
               style="height: auto;margin-left: 0px;margin-right: 0px;width: 100%;max-height: 100%;padding-left: 0px;"><span style="color: rgb(0,0,0);line-height: 40px;">供货商序号</span><input class="form-control" type="number" style="width: 350px;margin-left: 10px;" placeholder="请输入供货商序号" name="supid"></div>
          <div class="form-group text-monospace text-center d-inline-flex justify-content-center visible"
               style="width: auto;padding-right: 0px;"><span style="color: rgb(0,0,0);font-size: 16px;line-height: 40px;">商品数量</span><input class="form-control" type="number" style="width: 350px;margin-left: 10px;" placeholder="请输入商品数量" name="goodsnum"></div>
          <div class="form-group text-monospace text-center d-inline-flex justify-content-center"
               style="height: auto;margin-left: 0px;margin-right: 0px;width: 100%;max-height: 100%;padding-left: 0px;"><span style="color: rgb(0,0,0);line-height: 40px;">&nbsp; &nbsp; 总价</span><input class="form-control" type="text" style="width: 350px;margin-left: 10px;" placeholder="请输入商品总价" name="totalprice"></div>
          <input type="hidden" th:value="${goodsid}" name="goodsid">
          <div class="form-group text-monospace text-center d-inline-flex justify-content-center"
               style="height: auto;margin-left: 0px;margin-right: 0px;width: 100%;max-height: 100%;padding-left: 0px;"><button class="btn btn-primary" type="submit" value="fabu" style="width: 80px;">发布</button><button class="btn btn-primary" type="button" style="width: 80px;margin-left: 10px;" id="fanhui">返回</button></div>
        </form>
      </div>
    </div>
    <footer class="bg-white sticky-footer">
      <div class="container my-auto">
        <div class="text-center my-auto copyright"><span>鄂ICP备2021022432号</span></div>
      </div>
    </footer>
  </div><a class="border rounded d-inline scroll-to-top" href="#page-top"><i class="fas fa-angle-up"></i></a></div>
<script src="/static/js/bs-init.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.js"></script>
<script src="/static/js/theme.js"></script>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/js/chart.min.js"></script>
<script src="/static/js/script.min.js"></script>
<script src="/static/js/jquery.session.js"></script>

<script>

  // 跳转添加订单
  $(function (){
    $("#fanhui").click(function (){
      $(location).attr("href","/page/toProduct")
    })
  })

  function fabu(formvalue){
    var supid = formvalue.supid.value;
    var goodsnum = formvalue.goodsnum.value;
    var totalprice = formvalue.totalprice.value;
    var goodsid = formvalue.goodsid.value;

    var isSubmit = true;
    if(""==goodsid||""==supid||""==goodsnum||""==totalprice){
      isSubmit = false;
    }
    if(!isSubmit){
      alert("除备注外请不要输入空值！");
      return false;
    }
  }

  //session
  $.session.set("url",window.location.href);

</script>

</body>

</html>